package cn.edu.zufe.mjt.spinrg.sub;

import cn.edu.zufe.mjt.spinrg.Autowired;
import cn.edu.zufe.mjt.spinrg.Component;
import cn.edu.zufe.mjt.spinrg.PostConstruct;

/**
 * @author 蒙锦涛
 * @date 2025/4/25
 */
@Component(name = "mydog")
public class Dog {

    @Autowired
    private Cat cat;

    @Autowired
    private Dog dog;


    @PostConstruct
    public void init() {
        System.out.println("Dog 创建完成。里面有一个Cat：" + cat);
        System.out.println("Dog 创建完成。里面有一个Dog：" + dog);
    }
}
